/*!
 * Copyright (c) 2020 the original author or authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
@import 'colors.scss';
@import 'mixins.scss';

.main {
  .add-subject {
    padding-bottom: 16px;
    border-bottom: 1px solid $light-gray-special;

    .mat-flat-button {
      height: 43px;
      width: 100%;
    }
  }

  .search {
    margin-top: 15px;
  }

  .subjects {
    height: calc(100vh - 438px);
    min-height: 300px;
    overflow-y: auto;

    .select {
      border: none;
      padding: 0;
      margin: 0;
    }

    &--spinner {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }

    .option {
      border-bottom: 1px solid $special-gray;
      border-radius: 1px;
      cursor: pointer;

      list-style: none;
      padding: 0.7rem;

      &[selected='true'] {
        background: #e5f2fa;
      }

      &:hover {
        border-bottom: 1px solid $primary;
      }

      div {
        padding: 0 !important;

        .material-icon {
          font-size: 28px;
          color: $special-gray;
        }
        .selected-icon {
          color: $primary;
        }
      }

      .avatar {
        margin-right: 13px;
        display: flex;
        align-items: center;

        mat-icon {
          flex-shrink: 0;
        }

        .name {
          font-size: 18px;
          color: $black;
          margin-left: 13px;
          @include not-break-string();
        }
      }
    }
  }
}
